package cn.hinglo.permission.model.bean;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

/**
 * @createTime: 2020-05-18 17:11:49
 * @author HingLo
 * @description: BaseCode 模型
 */
@SuppressWarnings({"serial", "unchecked"})
public abstract class BaseCode<M extends cn.hinglo.permission.model.bean.BaseCode<M>> extends Model<M> implements IBean {

	public M setId(Integer id) {
		set("id", id);
		return (M) this;
	}

	public Integer getId() {
		return getInt("id");
	}

	public M setCodeKey(String codeKey) {
		set("codeKey", codeKey);
		return (M) this;
	}

	public String getCodeKey() {
		return getStr("codeKey");
	}

	public M setCodeValue(String codeValue) {
		set("codeValue", codeValue);
		return (M) this;
	}

	public String getCodeValue() {
		return getStr("codeValue");
	}

	/**
	 * 最后更新时间
	 */
	public M setGmtModified(java.util.Date gmtModified) {
		set("gmt_modified", gmtModified);
		return (M) this;
	}

	/**
	 * 最后更新时间
	 */
	public java.util.Date getGmtModified() {
		return get("gmt_modified");
	}

}
